package com.manage.system.api.request.role;

import com.manage.common.core.valid.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
public class RoleAddOrUpdateParam {
    @NotNull(message = "roleId不能为空", groups = {UpdateGroup.class})
    private Long id;

    @NotNull(message = "租户code不能为空")
    private String tenantCode;

    @NotNull(message = "角色code不能为空")
    private String roleCode;

    @NotNull(message = "角色名称不能为空")
    private String roleName;

    @NotNull(message = "权限标示不能为空")
    private String dataScope;

    private Integer roleSort;
    private String remark;
    private List<Long> deptIds;
}
